<template>
  <div>
    <swiper class="swiperBox">
      <swiper-item v-for="item in topImage" :key="item" class="swiperItem">
        <img :src="item" alt="轮播图" class="img">
      </swiper-item>
    </swiper>
  </div>
</template>

<script>
  import {Swiper, SwiperItem} from 'components/common/swiper'
  export default {
    name: "DetailSwiper",
    components: {Swiper, SwiperItem},
    props:  {
      topImage: {
        type: Array,
        default(){
          return []
        }
      }
    }
  }
</script>

<style scoped>
  .swiperBox{
    width: 100%;
    height: 70vw;
    overflow: hidden;
  }
</style>
